package 第五轮工作.河南工业大学;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import java.io.IOException;

public class HNGYU {
    /**
     * 此大学无法进行
     */
    public static void main(String[] args) throws IOException {
        String url = "";
        for (int i = 0; i < 3; i++) {
            if (i == 0) {
                url = "dsjj.htm";
            }
            if (i == 1) {
                url = "2.htm";
            }
            if (i == 2) {
                url = "1.htm";
            }


            Connection connect = Jsoup.connect("https://cee.haut.edu.cn/yjsjy/" + url);
            Document post = connect.post();
            System.out.println(post);
            for (Element subMainList : post.getElementsByClass("sub_main_list ")) {
                System.out.println(subMainList.getElementsByTag("li").text());
            }

        }
    }
}
